//
//  AppDbCache.h
//  helper
//
//  Created by huangyi on 12-11-21.
//  Copyright (c) 2012年 huangyi. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SQLITEObj : NSObject

+(SQLITEObj*)shared;
-(id)initSQLITE:(NSString*)filename;
-(NSString*)absolutePath;

-(BOOL)openDB;
-(BOOL)closeDB;
-(BOOL)reloadDB;
-(BOOL)clear;

-(NSString*)lastError;

-(NSString*)queue:(dispatch_block_t)sql;
-(NSArray*)query:(NSString*)format,...;
-(int)update:(NSString*)format,...;

@end
